package server;

import java.net.InetAddress;

public class User {

	private String name;
	private InetAddress address;
	private int udpPort;
	private boolean loggedIn;
	
	public User(String name, InetAddress address, int udpPort) {
		this.name = name;
		this.address = address;
		this.udpPort = udpPort;
		this.loggedIn = true;
	}

	public synchronized String getName() {
		return name;
	}

	public synchronized void setName(String name) {
		this.name = name;
	}

	public synchronized InetAddress getAddress() {
		return address;
	}

	public synchronized void setAddress(InetAddress address) {
		this.address = address;
	}

	public synchronized int getUdpPort() {
		return udpPort;
	}

	public synchronized void setUdpPort(int udpPort) {
		this.udpPort = udpPort;
	}

	public boolean isLoggedIn() {
		return loggedIn;
	}

	public void setLoggedIn(boolean loggedIn) {
		this.loggedIn = loggedIn;
	}
}
